#include<iostream>
using namespace std;
int n, m, k;
int arr[105][105];
int main()
{
	cin >> n >> m >> k;
	for (int i = 0; i < m; i++) {
		int x, y;
		cin >> x >> y;
		for (int j = x - 1; j <= x + 1; j++) {
			for (int k = y - 1; k <= y + 1; k++) {
				if (j < 0 || k < 0 ) {
					continue;
				 }
				else {
					arr[j][k] = 1;
				}
			}
		}
		int a = x - 2;
		int b = y - 2;
		if (a < 0 || b < 0) {
			continue;
		}
		else {
			arr[a][y] = 1;
			arr[a + 4][y] = 1;
			arr[a][b] = 1;
			arr[a][b + 4] = 1;
		}
	}
	for (int i = 0; i < k; i++) {
		int x, y;
		cin >> x >> y;
		for (int j = x - 2; j <= x + 2; j++) {
			for (int k = y - 2; k <= y + 2; k++) {
				arr[j][k] = 1;
			}
		}
	}
	int count = 0;
	for (int i = 1; i <= n; i++) {
		for (int j = 1; j <= n; j++) {
			if (arr[i][j] == 0) {
				count++;
			}
		}
	}
	cout << count << endl;
	return 0;
}